package org.exez.modules.system.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.exez.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @Author scott
 * @since 2018-12-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "用户添加对象")
public class SysUserSaveVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 登录账号
     */
    @Excel(name = "登录账号", width = 15)
    @ApiModelProperty(value = "登录账号",required = true)
    @NotBlank(message = "登录账号不能为空")
    private String username;



    /**
     * 密码
     */
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @ApiModelProperty(value = "密码",required = true)
    @NotBlank(message = "密码不能为空")
    private String password;

    /**
     * 编号
     */
    @ApiModelProperty(value = "编号")
    private String workNo;

    /**
     * 事业单位id
     */
    @ApiModelProperty(value = "事业单位id",required = true)
    @NotNull(message = "事业单位不能为空")
    private String institutionId;

    /**
     * 事业单位id
     */
    @ApiModelProperty(value = "单位名称",required = true)
    @NotNull(message = "单位名称不能为空")
    private String institutionName;

    /**
     * 事业单位id
     */
    @ApiModelProperty(value = "是否管理员 1.是  0否",required = true)
    private Integer isManage;
//
//    /**
//     * 功能权限
//     */
//    @ApiModelProperty(value = "功能权限（以逗号分隔）")
//    private String authority;

//    /**
//     * 事业单位名称
//     */
//    @ApiModelProperty(value = "事业单位名称")
//    private String institutionName;


}
